package com.dataseek.iot.mysql.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author cc
 * @since 2021-09-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("角色 role")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @ApiModelProperty("用户ID")
    @TableId(type = IdType.AUTO)
    private Long roleInnerId;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称",required = true)
    private String roleName;

    /**
     * 角色编码
     */
    @ApiModelProperty(value = "角色编码",required = true)
    private String roleCode;

    /**
     * 权限信息
     */
    @ApiModelProperty(value = "权限信息，menuCode:authCode", required = true)
    private String menuAuth;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private String createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    private String updateTime;

    /**
     * 补充内容
     */
    @ApiModelProperty("补充信息")
    private String comment;

    /**
     * 路由信息
     */
    @ApiModelProperty(value = "路由信息",required = true)
    private String routes;

    /**
     * 启用
     */
    @ApiModelProperty(value = "启用")
    private byte used;

}
